package com.linkhub.oms.data.sync.api.wms.domain.response;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Description: WmsBaseResponse
 * @Author: echo
 * @Date: 2024/5/6 15:39
 * @Version: 1.0
 */
public abstract class WmsBaseResponse implements Serializable {

    public static final String SUCCESS_FLAG = "success";
    public static final String FAIL_FLAG = "failure";

    public boolean success() {
        return Objects.equals(SUCCESS_FLAG, getFlag());
    }

    protected abstract String getFlag();


}
